<?php

class FSettlement extends BaseModel
{
    public function getSource()
    {
        return "f_settlement";
    }

    public function getInfo($month){
        $info = $this->findFirstByMonth($month);
        if(!$info){
            $this->month = $month;
            $this->status = 0;
            $this->save();
            $info = $this;
        }
        return $info;
    }
}
